package com.woniu.car.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniu.car.entity.TCouponLogs;
import com.woniu.car.mapper.TCouponLogsMapper;
import com.woniu.car.parameter.CouponLogsParameter;
import com.woniu.car.service.TCouponLogsService;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wuyanzu
 * @since 2021-06-22
 */
@Service
public class TCouponLogsServiceImpl extends ServiceImpl<TCouponLogsMapper, TCouponLogs> implements TCouponLogsService {
    public boolean insertCouponLogs(TCouponLogs tCouponLogs) {
        TCouponLogs logs = new TCouponLogs();
        BeanUtils.copyProperties(tCouponLogs,logs);
        return save(logs);
    }
}
